import request from '../utils/request';
export const preOrder = (data) => {
    return request({
        url: "/preOrder/create",
        method: "post",
        data: data
    })
}

export const createOrder = (data) => {
    return request({
        url: "/order/create",
        method: "post",
        data: data
    })
}

export const orderDetail = (orderId) => {
    return request({
        url: "/order/detail",
        method: "post",
        data: { orderId: orderId }
    })
}